/* Thumbnails */
a.imgbox {
  cursor: url("images/zoomIn.png"), -moz-zoom-in;
}

/* Throbber */
.imgbox-loading {
  &::after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: url("images/imgbox-spinner.svg") center center no-repeat;
    cursor: pointer;
    z-index: 999;
  }
  img {
    opacity: .6;
  }
}


/* Overlay */
#imgbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 80;
}

/* Image */
.imgbox-wrap {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  z-index: 90;
}
.imgbox-img {
  padding: 0;
  margin: 0;
  border: none;
  width: 100%;
  height: 100%;
  vertical-align: top;
  border-radius: 3px;
}
.imgbox-title {
  font-size: 12px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 20px;
  width: 100%;
  display: none;
  border-radius: 2px;
}

/* Background */
.imgbox-bg-wrap {
  position: absolute;
  padding: 0;
  margin: 0;
  display: none;
  border-radius: 6px;
}
.imgbox-bg-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 5px;
}

/* Controls */
.imgbox-close,
.imgbox-control {
  position: fixed;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.imgbox-close {
  bottom: 0;
  font-family: sans-serif;
    font-size: 50px;
    right: 5px;
    opacity: .3;
    &:hover {
      opacity: .6;
    }
}

.imgbox-control {
  top: 50%;
  margin-top: -80px;
  font-size: 160px;
  font-family: monospace;
  font-weight: bold;
  opacity: .2;
  &:hover {
    opacity: .6;
  }
  &.imgbox-prev {
    left: 0;
  }
  &.imgbox-next {
    right: 0;
  }
}

$dark: #000;
$light: #fff;

/* Light theme */
.imgbox-light {
  #imgbox-overlay {
    background: $dark;
  }
  .imgbox-title {
    color: $light;
    text-shadow: 0 0 4px rgba($dark, 0.5);
  }
  &.imgbox-no-overlay .imgbox-title {
    color: $dark;
    text-shadow: 0 0 4px rgba($light, 0.5);
    background: $light;
    background: rgba($light, 0.4);
    -webkit-box-shadow: 0 0 30px rgba($dark, 0.2);
    box-shadow: 0 0 30px rgba($dark, 0.2);
  }
  .imgbox-bg-wrap {
    background: $light;
    background: rgba($light, 0.2);
    -webkit-box-shadow: 0 0 30px rgba($dark, 0.2);
    box-shadow: 0 0 30px rgba($dark, 0.2);
  }
  .imgbox-bg-inner {
    background: $dark;
  }
  .imgbox-close, .imgbox-control {
    color: $light;
  }
  .imgbox-close {
    text-shadow: 0 0 15px $dark;
  }
  .imgbox-control {
    text-shadow: 0 0 30px rgba($dark, 0.15);
  }
}

/* Dark theme */
.imgbox-dark {
  #imgbox-overlay {
    background: $light;
  }
  .imgbox-title {
    color: $dark;
    text-shadow: 0 0 4px rgba($light, 0.5);
  }
  &.imgbox-no-overlay .imgbox-title {
    color: $light;
    text-shadow: 0 0 4px rgba($dark, 0.5);
    background: $dark;
    background: rgba($dark, 0.4);
    -webkit-box-shadow: 0 0 30px rgba($light, 0.2);
    box-shadow: 0 0 30px rgba($light, 0.2);
  }
  .imgbox-bg-wrap {
    background: $dark;
    background: rgba($dark, 0.2);
    -webkit-box-shadow: 0 0 30px rgba($light, 0.2);
    box-shadow: 0 0 30px rgba($light, 0.2);
  }
  .imgbox-bg-inner {
    background: $light;
  }
  .imgbox-close, .imgbox-control {
    color: $dark;
  }
  .imgbox-close {
    text-shadow: 0 0 15px $light;
  }
  .imgbox-control {
    text-shadow: 0 0 30px rgba($light, 0.15);
  }
}
